﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace WindowsFormsApplication5
{
    public class Forest: Abstractbarrier
    {
        private Rectangle forest;
 
        public Rectangle Rect
        {
            get { return forest; }
            set { forest = value; }
        }

        public override void PrintLocation()
        {
            Str = " ";
            Str = "Position X:" + Convert.ToString(Rect.Location.X) + "  Y:" + Convert.ToString(Rect.Location.Y);
        }

        public override void PrintParameters()
        {
            Str = " ";
            Str = "Parameters Width:" + Convert.ToString(Rect.Width) + "  Height:" + Convert.ToString(Rect.Height);
        }


        public Forest(int x, int y)
        {
            data = new Data();
            forest = new Rectangle();
            forest.Size = new Size(data.forest_width, data.forest_height);
            forest.Location = new Point(x, y);
        }
    }
}
